import IProps from '@/model/other/IProps'
import { Card } from 'antd-mobile'
import './LoginRegisterBase.less'

interface ILoginRegisterBase extends IProps {
  name: string
}

export default function LoginRegisterBase(props: ILoginRegisterBase) {
  return (
    <div className="vwh100 flex-c ai-c jc-c pure-top bg p-t-30">
      <Card className="m-t-50">
        <h2 className="flex jc-s ai-s w-300">{props.name}</h2>
        {props.children}
      </Card>
    </div>
  )
}
